#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#define NUM 10
int main()
{
	int i, a[NUM] = { 45,81,25,36,57,11,-7,4,78,93 };
	int max, min;
	max = min = a[0];
	for (i = 0;i < NUM;i++)
	{
		if (a[i] > max)
			max = a[i];
		if (a[i] < min)
			min = a[i];
	}
	printf("max=%d\nmin=%d", max, min);
}